Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

240
Views
Is it possible to re-open a file that was selected via the "input file" button programatically

In my web app the user selects a large zip file via an "input file" button.
The file is then returned as a blob (see the snapshot zipfile1).
The program then reads chunks (individual files) of the zip file one after the other.
A test program reads through all the files in a sequence, and then repeats the sequence multiple times.
This works ok on various OSs (Windows Linux, MacOs, Android) via various browsers (Chrome, Firefox, Safari).
But on iOS sometimes the blob object is lost, and the process returns an error.
In such case I can select the file again to continue the process.

But I would like to do this programatically, without the need for manual intervention.
I still have the filename, but the blob size is 0 (see the snapshot zipfile2).

Is it possible to re-open the file programatically?
Thanks


EDIT:

I tried to call

let zipFileUrl = URL.createObjectURL(zipFile);

to have some kind of a "handle" to the file in memory without the actual data.
The idea was that later on, if the file object gets corrupt, I can fetch(zipFileUrl) to reopen the file.
Unfortunately, createObjectURL creates a memory blob from the entire file in memory, which is useless to me because the file is too big...


zipFile1 zipfile1

zipfile2 zipFile2

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!